/*
 * @Author: viivLgr 
 * @Date: 2018-03-26 10:56:59 
 * @Last Modified by: viivLgr
 * @Last Modified time: 2018-03-26 11:24:28
 */
'use strict';
var _util = require('util/util.js');
var _payment= {
    // 获取支付状态
    getPaymentStatus: function(orderNo, resolve, reject){
        _util.request({
            url: _util.getServerUrl('/order/query_order_pay_status.do'),
            data: {
                orderNo: orderNo
            },
            success: resolve,
            error: reject
        });
    },
    // 获取支付信息
    getPaymentInfo: function(orderNo, resolve, reject){
        _util.request({
            url: _util.getServerUrl('/order/pay.do'),
            data: {
                orderNo: orderNo
            },
            success: resolve,
            error: reject
        });
    }
};

module.exports = _payment;